<?php
/**
 * 说明：
 * User: wenqiang.yq@gmail.com
 * Date: 16-3-31
 * Time: 下午5:35
 */


namespace ElasticSearch;


class EsCore extends EsBase
{
    /**
     * 集群健康
     * @return mixed|string
     */
    public function health()
    {
        $url = EsTools::specialUri($this->hosts, "/_cluster/health");
        return EsHttp::get($url);
    }
}